<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


</head>
<body>


<script type="module">


    function Person(name, age) {
        this.name = name;
        this.age = age;
    }

    Person.prototype.say = function (word) {
        console.log(this.name, word)
    }

    var person1 = new Person("张三", 19);
    var person2 = new Person("李四", 18);

    console.log(person1)
    console.log(person2)


</script>
</body>
</html>
